import { Point } from './Pointts'
import { Circle } from './circlets'

let heart_point: Point = new Point(1, 1)
let circle: Circle = new Circle(heart_point, 1)

let count: number = 0
for (let i = 0; i < 10000000; i++) {
    let x_tmp = Math.random() * 2
    let y_tmp = Math.random() * 2
    let point_tmp: Point = new Point(x_tmp, y_tmp)
    if (circle.isPointInCirle(point_tmp)) {
        count++
    }

}
console.log(count * 4 / 1000000);